<?php
error_reporting(E_ALL);
$path = dirname(__FILE__);

#var_dump($_FILES);

$jar = $_FILES["jar"];
$jad = $_FILES["jad"];

if (move_uploaded_file($jar["tmp_name"],$path."/apps/".$jar["name"])) {
	echo "JAR File is valid, and was successfully uploaded.\n";
} else {
   	echo "JAR Upload failed";
}
if (move_uploaded_file($jad["tmp_name"],$path."/apps/".$jad["name"])) {
  	echo "JAD File is valid, and was successfully uploaded.\n";
} else {
   	echo "JAD Upload failed";
}


